﻿@using Lari.Configuration
@model Lari.Services.ViewModel.CountryModal
<div id="pagetitle">
    <h1>@ScreenName.Masters.EditCountry</h1>
</div>
<div class="spacer">
</div>
<div id="pagecontent">
    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken("Edit Country")
        <div>
            <strong>Code:&nbsp;</strong>@Model.Code @Html.HiddenFor(m=>m.Code)
        </div>
       
        <div class="spacer">
        </div>
        <div>
            <label class="required">
                Name</label>
        </div>
        <div>
            @Html.TextBoxFor(m => m.Name)
            @Html.ValidationMessageFor(m => m.Name)
        </div>
        <div class="spacer">
        </div>
        <div>
            <label>
                Default</label>
        </div>
        <div>
            @Html.CheckBoxFor(m => m.IsDefault)
        </div>
        <div class="doubleSpacer">
        </div>
        <div>
            <input type="submit" value="@GuiActionName.Update" id="btnSubmit" />
        </div>
        <div class="doubleSpacer">
        </div>
        <div>
            @Html.ActionLink(ScreenName.Masters.ListCountries, ActionConst.Masters.Common.Countries)
        </div>
        <div class="spacer">
        </div>
        <div>
            @Html.ActionLink(ScreenName.Masters.NewCountry, ActionConst.Masters.Common.CreateCountry)
        </div>
        <div class="spacer">
        </div>
           
        
    }
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $("#btnSubmit").button();
    });
</script>
